package Employee;

import java.util.Scanner;

public class HourlyEmployee{
    int time;
    int Month;
    int timemoney;
    int hourlywage;

    public HourlyEmployee(int time, int month, int timemoney, int hourlywage) {
        this.time = time;
        Month = month;
        this.timemoney = timemoney;
        this.hourlywage = hourlywage;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getMonth() {
        return Month;
    }

    public void setMonth(int month) {
        Month = month;
    }

    public int getTimemoney() {
        return timemoney;
    }

    public void setTimemoney(int timemoney) {
        this.timemoney = timemoney;
    }
    public double getSalary(int month,int hour){
        double money = 0;
        if(hour>160){
            money = 160*hourlywage+((hour-160)*1.5*hourlywage);
        }else{
            money = hour*hourlywage;
        }
        return this.Month==month?money+100:money;

    }
}
